<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<jsp:useBean id="con000" class="com.tpc.control.bean.Con000"
	scope="session" />
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
if (con000.getLogon() == null || !con000.getLogon())
	response.sendRedirect(basePath+"/con000/con000.faces");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>CON-001: Main Menu</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="./css/custom.css">
		<link rel="stylesheet" type="text/css" href="./css/template01.css">
	</head>
  
<body>
	<div id="wrapper">
		<f:view>
			<f:loadBundle var="bundle"
						basename="com.tpc.control.message.ResourceBundle" />
		<div id="header">
			<p><h:outputText value="#{bundle.project_name}"/></p>		 	   
		</div>
        <div id="navigation">
        	<h:outputText value="CON-001: Main Menu" styleClass="header2"/>
		</div>		
			<div id="content">
				<h:form id="con000Form">
					<h:messages></h:messages>
					<h:panelGrid columns="1">
						<h:commandButton action="con100" value="#{bundle.con100}" style="width: 250px; text-align: left"/>
						<h:commandButton action="con110" value="#{bundle.con110}" style="width: 250px; text-align: left"/>
						<h:commandButton action="#{con120.gotoCon120}" value="#{bundle.con120}" style="width: 250px; text-align: left"/>
					 	<h:commandButton action="#{con130.gotoCon130}" value="#{bundle.con130}" style="width: 250px; text-align: left"/> 
					</h:panelGrid>
				</h:form>
			</div>  
			<div id="footer">
				<h:form id="footerForm">
					<h:panelGrid columns="2" width="500px" styleClass="normal2">
					<h:panelGroup>
						<h:outputText value="#{bundle.current_user}" styleClass="headerSubject"/>
						<h:outputText value="#{con000.userName}"/>
					</h:panelGroup>
					<h:panelGroup>
					<h:commandLink value="Main Menu" action="con001" styleClass="header2"></h:commandLink>
					<h:outputText value="|"/>
					<h:commandLink value="Logoff" action="#{con000.logoff}" styleClass="header2"></h:commandLink>
					</h:panelGroup>
					</h:panelGrid>
				</h:form>
			</div>
		</f:view>
	</div>
</body>
</html>